#include <func.h>

int main(int argc,char *argv[])
{
    pid_t pid;
    pid=fork();
    if(0==pid)
    {
        printf("I am child!\n");
        exit(1);
    }
    else 
    {
        int status;
        printf("I am parent! I am waiting my child!\n");
        wait(&status);
        printf("Child exit status is %d\n",status);
    }
    return 0;
}

